import {IS_FOR_QQ, IS_FOR_WX} from "../AppConfig";

let imp;
if (cc.sys.platform === cc.sys.WECHAT_GAME) {
  if (IS_FOR_QQ) {
    imp = require("./qq/QQImp");
  } else if (IS_FOR_WX) {
    imp = require("./wx/WechatImp");
  }
} else if (cc.sys.platform === cc.sys.OPPO_GAME) {
  imp = require("./oppo/OppoImp");
} else {
  imp = require("./web/webImp");
}

window.PlatformUtils = window.PlatformUtils || imp;

module.exports = imp;